/* eslint-disable simple-import-sort/imports */
import TDesign from 'tdesign-vue-next';
import { createApp } from 'vue';

import App from './App.vue';
import router from './router';
import { store } from './store';
import i18n from './locales';

import 'tdesign-vue-next/es/style/index.css';
import '@/style/index.less';
import './permission';
import VueCompareImage from 'vue3-compare-image';
import baiduAnalytics from "vue-baidu-analytics";

import $eventBus from '@/utils/eventBus'
import vuetyped from "vue3typed";


import VueMarkdownEditor from '@kangc/v-md-editor';
 import '@kangc/v-md-editor/lib/style/base-editor.css';
 import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
 import '@kangc/v-md-editor/lib/theme/style/vuepress.css';
 import Prism from 'prismjs';
 import 'default-passive-events'

//编辑器的主题
 VueMarkdownEditor.use(vuepressTheme,{
   Prism,
 });



const app = createApp(App);

app.config.globalProperties.$eventBus=$eventBus
app.use(TDesign);
app.use(vuetyped);
app.use(store);
app.use(router);
app.use(i18n);

app.use(VueMarkdownEditor)

app.use(VueCompareImage)

app.mount('#app');

